package io.renren.modules.generator.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.generator.entity.FriendsEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * HR关系表; InnoDB free: 10240 kB
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-07-14 13:56:25
 */
public interface FriendsService extends IService<FriendsEntity> {

    PageUtils queryPage(Map<String, Object> params);
    List<Map<String,Object>> getList( Long id, String username);
    List<Map<String,Object>> getList2(Long id, String username);
    List<Map<String,Object>> msgList(Long rid);
    int add(Long sid,Long rid,String friMsg);
    List<Map<String,Object>> friendListByMobile(String mobile);
    int updateState(Long sid,Long rid,Long friState );
    FriendsEntity findFriByids(Long sid,Long rid);
    List getReceiverList(Long userId);
    List getSenderList(Long userId);
 }

